package com.sinaapp.mrblog.game.Assasin.util;

import java.util.ArrayList;
import java.util.List;

public class Author {
	public static List<int[]>  chapters;
	static{
		chapters = new ArrayList<int[]>();
		chapters.add(new int[]{0,1,2,3,4,5});
		chapters.add(new int[]{6,7,8,9,10,11,12,13,14,15});
		chapters.add(new int[]{16,17,18,19,20,21,22,23});
		chapters.add(new int[]{24,25,26,27,28,29});
	}
	
	public static int currentChapter(int cur){
		for(int i = 0;i<chapters.size();i++){
			for(int num:chapters.get(i)){
				if(cur==num){
					return i;
				}
			}
		}
		return 0;
	}
	
	public static boolean isLocked(int cur){
		if(Settings.mapStart[cur]>0){
			return false;
		}else {
			return true;
		}
		
	}
	
}
